---
--- apps实体信息（数据库需要用到）
--- Created by E.T.
--- DateTime: 2018/10/25 11:35
---

local SCHEMA = {
    primary_key = { "id" },
    table = "eureka_apps",
    cache_key = { "name" },
    fields = {
        id = { type = "id", dao_insert_value = true },
        name = { type = "string", immutable = true, dao_insert_value = true },
        instance_id = { type = "string", required = true},
        host_name = { type = "string", required = true, unique = true },
        port = {type = "string"},
        status = {type = "string"},
        instance_status = {type = "string"}
    },
}

return { eureka_apps = SCHEMA }
